<div class="weui_cells_title">{title}</div>
<div class="weui_cells" style="margin:0">
<div class="weui_cell weui_cell_select" ng-if="'{options}'==''" ng-init="pcd()">
	<div class="weui_cell_bd weui_cell_primary" style="padding:0.5rem 0.1rem">
		<select class="weui_selectpcd" ng-model="{tovalue}.{name}.province"ng-change="{tovalue}.{name}.city=undefined;{tovalue}.{name}.district=undefined;{tovalue}.{name}.street=undefined" >
			<option value="" selected="selected">省份</option>
			<option ng-repeat="(value,data) in pcd_data" ng-selected="{tovalue}.{name}.province==value"  value="{{value}}">{{value}}</option>
		</select>
	</div>
	<div class="weui_cell_bd weui_cell_primary" style="padding:0.5rem 0.1rem">
		<select class="weui_selectpcd" ng-model="{tovalue}.{name}.city" ng-change="{tovalue}.{name}.district=undefined;{tovalue}.{name}.street=undefined">
			<option value="" selected="selected">城市</option>
			<option ng-repeat="(value,data) in pcd_data[{tovalue}.{name}.province]" ng-selected="{tovalue}.{name}.city==value" value="{{value}}">{{value}}</option>
		</select>
	</div>
	<div class="weui_cell_bd weui_cell_primary" style="padding:0.5rem 0.1rem">
		<select class="weui_selectpcd" ng-model="{tovalue}.{name}.district" ng-change="{tovalue}.{name}.street=undefined">
			<option value="" selected="selected">区县</option>
			<option ng-repeat="(value,data) in pcd_data[{tovalue}.{name}.province][{tovalue}.{name}.city]" ng-selected="{tovalue}.{name}.district==value" value="{{value}}">{{value}}</option>
		</select>
	</div>
	<div class="weui_cell_bd weui_cell_primary" ng-if="'{street}'" style="padding:0.5rem 0.1rem">
		<select class="weui_selectpcd" ng-model="{tovalue}.{name}.street">
			<option value="" selected="selected">街道</option>
			<option ng-repeat="value in pcd_data[{tovalue}.{name}.province][{tovalue}.{name}.city][{tovalue}.{name}.district]" ng-selected="{tovalue}.{name}.street==value" value="{{value}}">{{value}}</option>
		</select>
	</div>
</div>
<div class="weui_cell weui_cell_select" ng-if="'{options}'!=''" style="padding:0.5rem 0.1rem">
	<div class="weui_cell_bd weui_cell_primary">
		<select class="weui_selectpcd" ng-model="{tovalue}.{name}.province"ng-change="{tovalue}.{name}.city=undefined;{tovalue}.{name}.district=undefined;{tovalue}.{name}.street=undefined" >
			<option value="" selected="selected">省份</option>
			<option ng-repeat="(value,data) in {pagevalue}.{options}" ng-selected="{tovalue}.{name}.province==value"  value="{{value}}">{{value}}</option>
		</select>
	</div>
	<div class="weui_cell_bd weui_cell_primary" style="padding:0.5rem 0.1rem">
		<select class="weui_selectpcd" ng-model="{tovalue}.{name}.city" ng-change="{tovalue}.{name}.district=undefined;{tovalue}.{name}.street=undefined">
			<option value="" selected="selected">城市</option>
			<option ng-repeat="(value,data) in {pagevalue}.{options}[{tovalue}.{name}.province]" ng-selected="{tovalue}.{name}.city==value" value="{{value}}">{{value}}</option>
		</select>
	</div>
	<div class="weui_cell_bd weui_cell_primary" style="padding:0.5rem 0.1rem">
		<select class="weui_selectpcd" ng-model="{tovalue}.{name}.district" ng-change="{tovalue}.{name}.street=undefined">
			<option value="" selected="selected">区县</option>
			<option ng-repeat="(value,data) in {pagevalue}.{options}[{tovalue}.{name}.province][{tovalue}.{name}.city]" ng-selected="{tovalue}.{name}.district==value" value="{{value}}">{{value}}</option>
		</select>
	</div>
	<div class="weui_cell_bd weui_cell_primary" ng-if="'{street}'" style="padding:0.5rem 0.1rem">
		<select class="weui_selectpcd" ng-model="{tovalue}.{name}.street">
			<option value="" selected="selected">街道</option>
			<option ng-repeat="value in {pagevalue}.{options}[{tovalue}.{name}.province][{tovalue}.{name}.city][{tovalue}.{name}.district]" ng-selected="{tovalue}.{name}.street==value" value="{{value}}">{{value}}</option>
		</select>
	</div>
</div>
</div>
<script language='javascript'>
// 百度地图API功能
window.scope.location(function(res){
	scope.{tovalue}.{name} = {'province':res.addressComponents.province,'city':res.addressComponents.city,'district':res.addressComponents.district,'street':res.addressComponents.street};
	scope.$evalAsync();
});
</script>